package com.ljj.user.service.impl;

import com.ljj.user.mapper.UserMapper;
import com.ljj.user.pojo.User;
import com.ljj.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/17 15:17
 * @Version 1.0
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryById(Long id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
